package com.youmu.sichuansfc.service.impl;

import com.youmu.sichuansfc.dao.UserDao;
import com.youmu.sichuansfc.domain.YoumuUser;
import com.youmu.sichuansfc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

@Service
@Transactional
public class UserServiceImpl implements UserService{

    @Autowired
    UserDao userDao;

    @Override
    public YoumuUser login(String name, String password) {

        YoumuUser youmuUser = userDao.findbyLoging(name, password);
        return youmuUser;
    }
}
